package com.songcha.module_mine.ui.activity.feedback

import android.app.Application
import androidx.lifecycle.MutableLiveData
import com.songcha.library_base.interfaces.IApiResult
import com.songcha.library_base.mvvm.base.BaseViewModel
import com.songcha.library_network.bean.BaseBean

class FeedbackViewModel(app: Application):BaseViewModel<FeedbackRepository>(app) {
    var feedbackState=MutableLiveData(false)

    fun commitFeedback(content:String){
        handleApiDataObserver(repository!!.commitFeedback(content),object :IApiResult<BaseBean>{
            override fun onSuccess(bean: BaseBean) {
                feedbackState.value=true
            }

        })
    }

}